package org.hh.netty.client;

import io.netty.channel.Channel;
import javafx.stage.Stage;

public class StudentModel {

    Channel Serverchannel;      //与服务器的连接通道
    Stage primaryStage;
    private static StudentModel studentModel = new StudentModel();

    public Stage getPrimaryStage() {
        return primaryStage;
    }

    public void setPrimaryStage(Stage primaryStage) {
        this.primaryStage = primaryStage;
    }

    public Channel getServerchannel() {
        return Serverchannel;
    }

    public void setServerchannel(Channel serverchannel) {
        Serverchannel = serverchannel;
    }

    private StudentModel(){};

    public static StudentModel getInstance(){
        return studentModel;
    }
}
